#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <string>
using namespace std;
class Point{
private:
    int _x;
    int _y;

public:
    Point(int x, int y)
        :_x(x)
         ,_y(y)
    {
        cout << "call constructor" << _x << _y <<endl;
    }

    ~Point(){
        cout << "call deconstructor" << endl;
    }
    Point(const Point & rhs)
        :_x(rhs._x)
         ,_y(rhs._y)
    {
        cout << "call copy constrctor " << _x << _y  << endl;
    }

    void print(){
        cout << "_x=" << _x << "_y=" << _y << endl;
    }

};

void test(){
    Point qq = Point(Point(2,3));
    //Point qq = Point(2,3);
    qq.print();
    cout << "end of test" << endl;
}


int main()
{
    test();
    
    return 0;
}
